<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/15
  Time: 15:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>

<title>消息模板</title>

<div ng-include="loanBefore" class="includeStyle ">


    <div class="bgSortScroll">
        <!-- ngIf: HbHr.hr229 -->
        <messgmodel ng-if="HbHr.hr229" class="">
            <div class="public-bgContent" ng-init="load()">
                <div class="public-bgDate">
                    <div class="se-re">
                        <div id="a_content"></div>
                        <script type="text/x-handlebars-template" id="a_content_tpl">

                            <select id="msgTypesSelect" ng-options="a.id as a.nt_name for a in msgTypes.content"
                                    ng-model="param.msg_types"
                                    class="ng-pristine ng-untouched ng-valid ng-empty">
                                <option value="" selected="selected">消息类型</option>
                                {{#each content}}
                                <option label="{{nt_name}}" value="{{id}}">{{nt_name}}</option>
                                {{/each}}

                            </select>
                            <span class="se-po"></span></script>
                    </div>
                    <div class="se-re">
                        <select id="sendTypesSelect" ng-model="param.send_types"
                                class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">发送方式</option>
                            <option value="1">邮件</option>
                            <option value="2">短信</option>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <!--<div class="se-re">
                        <select ng-model="param.is_open">
                            <option value="">状态</option>
                            <option value="1">正常</option>
                            <option value="2">禁用</option>
                        </select>
                        <span class="se-po"></span>
                    </div>-->
                    <span>
			<input id="msgTitleInput" type="text" autocomplete="off" ng-model="param.msg_title" placeholder="输入标题关键词"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
		</span>
                    <button id="serachBtn">
                        <i class="iconfont icon-sousuo"></i>
                    </button>
                </div>
                <!--提示操作-->
                <div class="public-bghint">
                    <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                    <i class="iconfont icon-icon-copy-copy"></i>
                </div>
                <ul class="public-ulList set-listH" ng-show="setShow.caozuo">
                    <li>拥有权限的管理员才可以进行查看、编辑</li>
                </ul>
                <div style="height: 20px;"></div>

                <div class="table-scroll">
                    <table class="table public-table PoInput messg-td">
                        <thead>
                        <tr>
                            <td>选择</td>
                            <td>消息类型</td>

                            <td>消息标题</td>

                            <td>发送方式</td>
                            <td>更新时间</td>
                            <td>ID</td>

                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody id="b_content">

                        </tbody>
                        <tfoot class="public-botPage">
                        <tr>
                            <td>
                                <!-- 全选反选  -->
                                <input class="all_check" id="checkAllOrNot" style="" type="checkbox"
                                       ng-click="F.ch_id_all($event,'ch_id')">
                            </td>
                            <td colspan="12">
                                <div class="public-botPage-left">
							<span>
								<span>全选</span>
							</span>
                                    <div class="se-re">
                                        <select id="allDdelectSelect"
                                                class="tabHint mng ng-pristine ng-untouched ng-valid ng-not-empty"
                                                ng-model="selectType.default"
                                                ng-change="F.selectQuery('mng','ch_id')">
                                            <option value="-1" selected="selected">批量操作</option>
                                            <!-- ngIf: HbHr.hr104 -->
                                            <option ng-if="HbHr.hr104" value="2" path="loanIng" data-type="4"
                                                    params="blankLoad" class="">批量删除
                                            </option><!-- end ngIf: HbHr.hr104 -->
                                        </select>
                                        <span class="se-po"></span>
                                    </div>
                                    <button class="tabHint " id="addTemplate"
                                            ng-click="F.toggleView('loanBefore','orderRntry',$event)" params="1"
                                            ng-if="HbHr.hr58 &amp;&amp; operation._type=='orderList'">
                                        添加模板
                                    </button>
                                </div>
                                <div class="page-container public-botPage-right">
                                    <!-- 页码公共引进  'work/tems3/loanBefore/page/page.html'-->

                                </div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>

            </div>

        </messgmodel><!-- end ngIf: HbHr.hr229 -->
    </div>


</div>
<div class="winBox winBoxAdd" style="display: none;">
    <div class="winBox1">
        <div class="winBox3">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">添加模板</span>
                    <i class="iconfont icon-wrong headerIcon"></i>
                </div>
                <!-- 内容 -->
                <div class="contentBox" style="padding-bottom: 50px; overflow-y: scroll;max-height: 500px;">
                    <!-- 中间tab -->
                    <div class="set-title-name">
                        <ii class="special-code">*</ii>
                        消息类型
                    </div>
                    <div class="se-re">
                        <div id="smsType_content" class="public-bgDate D-messg"></div>
                        <script type="text/x-handlebars-template" id="smsType_content_tpl">

                            <select id="WmsgType" ng-options="a.id as a.nt_name for a in msgTypes.content"
                                    ng-model="param.msg_types"
                                    class="ng-pristine ng-untouched ng-valid ng-empty">
                                <option value="" selected="selected">消息类型</option>
                                {{#each content}}
                                <option label="{{nt_name}}" value="{{id}}">{{nt_name}}</option>
                                {{/each}}

                            </select>
                            <span class="se-po"></span></script>
                    </div>
                    <div class="set-title-name">
                        <ii class="special-code">*</ii>
                        发送方式
                    </div>
                    <div class="D-messg-model" style="">
                        <input id="WmailInput" checked type="checkbox" name="Wm_ch" value="1">
                        <span class="set-title-name">
			邮件
		</span>
                        <span id="Wmail" style="">
			<div class="input-word D-messg-input">
				<input id="WsetMailTitle" type="text" placeholder="输入邮件标题" ng-model="param.mail_title"
                       class="ng-pristine ng-untouched ng-valid ng-not-empty">
			</div>
                <%--1--%>

                            	 <div id="Wmail_content" style="height: 300px" class="edui-default"></div>

 			<p class="D-messg-p">把鼠标键入到要显示内容位置，然后点击下面要显示的字段</p>
			<div id="messg-span1" class="D-messg-span">
				<span data-placehold='{loan_number}'>借款编号字段</span>
				<span data-placehold="{auditor_post}">审核者职位</span>
				<span data-placehold="{audit_time}">审核时间</span>
				<span data-placehold="{audit_state}">审核状态</span>
				<span data-placehold="{audit_remark}">审核备注</span>
				<span data-placehold="{real_name}">真实姓名</span>
				<span data-placehold="{client_name}">客户姓名</span>
				<span data-placehold="{client_number}">客户编号</span>
				<span data-placehold="{cell_phone}">手机号码</span>
				<span data-placehold="{amend_time}">修改时间</span>
				<span data-placehold="{order_number}">订单编号</span>
				<span data-placehold="{back_person}">退回者</span>
				<span data-placehold="{back_reason}">退回原因</span>

				<span data-placehold="{service_state}">服务状态</span>

				<span data-placehold="{get_loan_amount}">借款总额</span>
				<span data-placehold="{give_loan_time}">放款日期</span>
				<span data-placehold="{period_number}">期数</span>
				<span data-placehold="{this_return_money}">本期还款金额</span>
				<span data-placehold="{this_return_time}">本期还款日期</span>
				<span data-placehold="{the_return_time}">该期还款日期</span>
				<span data-placehold="{the_return_money}">该期还款金额</span>
				<span data-placehold="{back_money_time}">还款日期</span>
				<span data-placehold="{putup_time}">提交日期</span>
				<span data-placehold="{service_person}">客服专员</span>
				<span data-placehold="{department_name}">部门名称</span>
				<span data-placehold="{inaccount_money}">到账金额</span>
				<span data-placehold="{finance_name}">财务人员姓名</span>
				<span data-placehold="{recheck_account_time}">复核到账时间</span>
				<span data-placehold="{overdue_rate}">逾期利率</span>
				<span data-placehold="{overdue_interest_rate}">逾期利息率</span>

				<span data-placehold="{later_group_name}">后期组长姓名</span>

				<span data-placehold="{deal_remark}">处理备注</span>
				<span data-placehold="{cash_pledge_type}">押金类型</span>
				<span data-placehold="{cash_plege_amount}">押金总额</span>
				<span data-placehold="{remaining_cash_pledge}">剩余押金</span>
			</div>
 		 	</span>
                    </div>

                    <%--短信--%>
                    <div class="D-messg-model">
                        <input id="WsmsInput" checked type="checkbox" name="Wm_ch" value="2">
                        <span class="set-title-name">
			短信
		</span>
                        <span id="Wphone">
			<!--<script id="phone_content" type="text/plain" style="width:870px;height:300px;">
			</script>-->
					<div class="input-word D-messg-input">
				<input id="WsetSmsTitle" type="text" placeholder="输入短信标题" ng-model="param.mail_title"
                       class="ng-pristine ng-untouched ng-valid ng-not-empty">
			</div>
			<br>

 <div id="Wphone_content" style="height: 300px" class="edui-default"></div>

 			<p class="D-messg-p">把鼠标键入到要显示内容位置，然后点击下面要显示的字段</p>
			<div id="messg-span2" class="D-messg-span">
				<span data-placehold='{loan_number}'>借款编号字段</span>
				<span data-placehold="{auditor_post}">审核者职位</span>
				<span data-placehold="{audit_time}">审核时间</span>
				<span data-placehold="{audit_state}">审核状态</span>
				<span data-placehold="{audit_remark}">审核备注</span>
				<span data-placehold="{real_name}">真实姓名</span>
				<span data-placehold="{client_name}">客户姓名</span>
				<span data-placehold="{client_number}">客户编号</span>
				<span data-placehold="{cell_phone}">手机号码</span>
				<span data-placehold="{amend_time}">修改时间</span>
				<span data-placehold="{order_number}">订单编号</span>
				<span data-placehold="{back_person}">退回者</span>
				<span data-placehold="{back_reason}">退回原因</span>

				<span data-placehold="{service_state}">服务状态</span>

				<span data-placehold="{get_loan_amount}">借款总额</span>
				<span data-placehold="{give_loan_time}">放款日期</span>
				<span data-placehold="{period_number}">期数</span>
				<span data-placehold="{this_return_money}">本期还款金额</span>
				<span data-placehold="{this_return_time}">本期还款日期</span>
				<span data-placehold="{the_return_time}">该期还款日期</span>
				<span data-placehold="{the_return_money}">该期还款金额</span>
				<span data-placehold="{back_money_time}">还款日期</span>
				<span data-placehold="{putup_time}">提交日期</span>
				<span data-placehold="{service_person}">客服专员</span>
				<span data-placehold="{department_name}">部门名称</span>
				<span data-placehold="{inaccount_money}">到账金额</span>
				<span data-placehold="{finance_name}">财务人员姓名</span>
				<span data-placehold="{recheck_account_time}">复核到账时间</span>
				<span data-placehold="{overdue_rate}">逾期利率</span>
				<span data-placehold="{overdue_interest_rate}">逾期利息率</span>

				<span data-placehold="{later_group_name}">后期组长姓名</span>

				<span data-placehold="{deal_remark}">处理备注</span>
				<span data-placehold="{cash_pledge_type}">押金类型</span>
				<span data-placehold="{cash_plege_amount}">押金总额</span>
				<span data-placehold="{remaining_cash_pledge}">剩余押金</span>
			</div>
			 		</span>
                    </div>


                    <!-- 底部 -->
                    <div class="deleFooter footerBox" style="padding: 0 40px;">
                        <div class="deleBtn">
                            <button style="background: #E55A5B;" id="WcommitPermiss">确定提交</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="winBox delectTplWinBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox3 ">
            <div class="payer">

                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">删除模板</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd">
                            <div class="deleteTit">
                                <span class="first"><i class="iconfont icon-tips2"></i></span>
                                <span>您确定要删除模板？</span>
                            </div>
                            <!-- tab列表结束 -->
                            <!-- 底部 -->
                            <div class="deleFooter" style="padding-top: 0;">
                                <div class="beizhu assBeizhu"><span>*</span>备注</div>
                                <textarea ng-focus="remHight()" ng-class="{'error':redErr.reason}"
                                          ng-model="param.reason" data-tag="textLength" showtag="zishuxians"

                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" id="delectCommit">确定删除</button>
                                </div>
                                <div class="zishu">
                                    <i id="zishuxians">200</i>字
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
<script type="text/x-handlebars-template" id="b_content_tpl">
    {{#if content}}
    {{#each content}}
    <tr ng-repeat="i in data.content" ng-click="tabClick($event)" class="table-tr-hover ">
        <td><input type="checkbox" name="ch_id" value="{{id}}"></td>

        <td class="">{{nt_name}}</td>


        <td class="">
            {{#if sms_title}}
            {{sms_title}}
            {{else}}
            【凯盛房贷】{{nt_name}}
            {{/if}}
        </td>

        <td class="">{{send_types}}</td>
        <td class="">{{update_time}}</td>

        <td class="">{{id}}</td>

        <td>
            <!-- ngIf: HbHr.hr230 -->
            <button ng-if="HbHr.hr230" right="1" roid="1"
                    class="tabedit tt11 edit_template" path="set" data-type="1" params="messgEdit" param="id:1"
                    data-id="{{id}}"
                    ng-click="F.btnQuery('tt1'+i.id)">

                编辑
            </button><!-- end ngIf: HbHr.hr230 -->
            <button class="delectList" ng-if="HbHr.hr230" right="1" roid="1"
                    style="width: 70px;
    height: 30px;
    color: #fff;
    border-radius: 3px;
     border: none;"

                    class="tt11 " path="set" data-type="1" params="messgEdit" param="id:1"
                    data-id="{{id}}"
                    ng-click="F.btnQuery('tt1'+i.id)">

                删除
            </button>
        </td>
    </tr>

    {{/each}}
    {{else}}
    <tr ng-if="data.content.list.length ==0" class="">
        <td colspan="16">暂时找不到数据</td>
    </tr>
    {{/if}}
</script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.config.js?_v=190102162154"></script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.all.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>

<script type="text/javascript" src="static/js/page/set/messagetemplate/message_template.js?_v=190102162154"></script>

<%@ include file="../../common/web_bottom.jsp" %>
